/**
 * Created by Ztt on 2017/8/11.
 */

var versions = require("./version")
var assert = require('assert')

assert( versions.compare("1.0.0", "0.1.0") >0 , "1")
assert( versions.compare("0.1.0", "1.0.0") <0 , "2")
assert( versions.compare("1.0.0", "1.0.0") == 0 ,"3")
assert( versions.compare("1.2.3", "0.1.0") >0 ,"4")
assert( versions.compare("3.2.1", "3.2.1") == 0 ,"5")
assert( versions.compare("10.0.0", "0.1.0") >0 ,"6")
assert( versions.compare("1.0.0", "0.10.0") >0 ,"7")
assert( versions.compare("1.0.0", "0.10") >0 ,"8")
assert( versions.compare("1.0", "0.10.0") >0 ,"9")
assert( versions.compare("1.0", "1.0.0") == 0 ,"10")
assert( versions.compare("1.0", "1.0.1") < 0 ,"11")
console.log("all pass!!!")
